package com.nuoniu.sibanyun.entity.app;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 应用包管理
 * </p>
 *
 * @author 小啊刚
 * @since 2021-08-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("app_info")
@ApiModel(value="AppInfo对象", description="应用包管理")
public class AppInfo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "app名称")
    @TableField("app_name")
    private String appName;

    @ApiModelProperty(value = "版本号")
    @TableField("app_version")
    private String appVersion;

    @ApiModelProperty(value = "类型1:安卓 2:ios")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "状态:1可用 0停用")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "下载地址")
    @TableField("download_url")
    private String downloadUrl;

    @ApiModelProperty(value = "下载次数")
    @TableField("download_count")
    private Long downloadCount;

    @ApiModelProperty(value = "是否强制更新:0否1是")
    @TableField("is_forced_update")
    private Integer isForcedUpdate;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_date")
    private LocalDateTime createDate;


}
